package com.ibigcat.module.mdm.controller.admin.commodity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 商品信息新增/修改 Request VO")
@Data
public class CommoditySaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24891")
    private Long id;

    @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "商品名称不能为空")
    private String skuName;

    @Schema(description = "商户商品编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "商户商品编码不能为空")
    private String customerSkuCode;

    @Schema(description = "居然商品编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "居然商品编码不能为空")
    private String iotSkuCode;

    @Schema(description = "厂家商品编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "厂家商品编码不能为空")
    private String factorySkuCode;

    @Schema(description = "居然商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "居然商品名称不能为空")
    private String iotSkuName;

    @Schema(description = "商品品牌", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "商品品牌不能为空")
    private String skuBrand;

    @Schema(description = "商品单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "商品单位不能为空")
    private String skuUnit;

    @Schema(description = "所属客户", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "所属客户不能为空")
    private String customerCode;

    @Schema(description = "是否定制品")
    private Boolean customizedInd;

    @Schema(description = "长（MM）")
    private BigDecimal length;

    @Schema(description = "宽（MM）")
    private BigDecimal width;

    @Schema(description = "高（MM）")
    private BigDecimal height;

    @Schema(description = "毛重（KG）")
    private BigDecimal grossWeight;

    @Schema(description = "体积（立方米）")
    private BigDecimal volume;

    @Schema(description = "商品一级分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "商品一级分类不能为空")
    private String firstCategoryLevel;

    @Schema(description = "商品二级分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "商品二级分类不能为空")
    private String secondCategoryLevel;

    @Schema(description = "商品三级分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "商品三级分类不能为空")
    private String thirdCategoryLevel;

    @Schema(description = "启停状态")
    private Boolean disabled;

    @Schema(description = "数据来源", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "数据来源不能为空")
    private String dataSource;

    @Schema(description = "商品引用时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "商品引用时间不能为空")
    private String referenceTime;

    @Schema(description = "市场参考价", example = "16758")
    private BigDecimal referencePrice;

}